<?php

class IndexController extends Controller
{
	public $layout = 'main';
	
	public function actionIndex()
	{
		//get recent activities
		$arrLogs = Logs::getInstance()->getList();
		
		//get stats
		$arrStats = System::getInstance()->getStats();
		
		$this->render('index', array(
			'arrLogs' => $arrLogs,
			'arrStats' => $arrStats
		));
	}
	
	public function actionInfo(){
		$arrInfo = System::getInstance()->getInfo();
		$arrPhpInfo = System::getInstance()->getPhpInfo();
		//o($arrInfo);
		$this->render('system-info', array(
			'arrInfo' => $arrInfo,
			'arrPhpInfo' => $arrPhpInfo
		));	
	}
}